package com.mjk.datasource.model;

import com.mjk.common.base.model.BaseEntity;
import com.mjk.common.core.jdbc.annotation.ArcSharding;
import com.mjk.common.core.jdbc.annotation.ExampleField;
import com.mjk.common.core.jdbc.annotation.Filed;
import com.mjk.common.core.jdbc.annotation.Id;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@ArcSharding(dataSource = "his", table = "api_detail")
public class ApiDetailModel extends BaseEntity {
    @Filed(comment = "接口Id",lenght = 255,cloum = "apiId")
    private String apiId;
    @Filed(comment = "数据的SQL 或者 服务地址",lenght = 255,cloum = "dateSql")
    private String dateSql;
    @Filed(comment = "数据类型 1 obj 2 list",lenght = 255,cloum = "dateType")
    private String dateType;

    @Id
    @ExampleField
    private Integer id;
    @Filed(comment = "节点名称",lenght = 255,cloum = "nodeName")
    private String nodeName;
    @Filed(comment = "节点类型，0 无,1 SQL ,2存储过程,3服务 ",lenght = 255,cloum = "nodeType")
    private String nodeType;
    @Filed(comment = "SQL 或者 服务入参",lenght = 255,cloum = "params")
    private String params;
    @Filed(comment = "父节点Id",lenght = 255,cloum = "parentId")
    private String parentId;

}